<?php
    if (isset($message) && $message!=''){
     echo "<div style='position:relative; left:200px;'><font color=red>$message</font></div><br />";
    }
?>
<br />
<center><a href="<?php echo Utility::getSiteUrl(); ?>/album/detail/<?php echo $id ?>">[Quay lại]</a></center>
<br />
<fieldset style="position:relative; left:150px; width:400px;">
    <legend>Thông tin ảnh</legend>
    <form action="<?php echo Utility::getSiteUrl(); ?>/album/additem/<?php echo $id ?>" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td width="70px">Chọn ảnh  </td>
            <td> <input type="file" size="31" name="file" />*</td>
        </tr>
        <tr>
            <td></td>
            <td style="font-size: x-small; color: gray;">*Chú ý: Hãy chọn ảnh với dung lượng không quá 2 MB
                <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                Các định dạng ảnh cho phép: jpg, jpeg, png, gif <br />&nbsp;</td>
        </tr>
        <tr>
            <td>Mô tả</td>
            <td><input type="text" maxlength="100" size="45" name="description" /></td>
        </tr>
        <tr>
            <td>Link</td>
            <td><input type="text" maxlength="100" size="45" name="link" /></td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" value="Upload ảnh" /></td>
        </tr>
    </table>
    </form>
</fieldset>